package com.isoftstone.merchant.service.mprojecttype;

import com.isoftstone.common.Page;
import com.isoftstone.merchant.entity.mprojecttype.MProjectType;

import java.util.List;
import java.util.Map;

/**
 * Created by as on 2017/12/12.
 *
 *
 */
public interface MProjectTypeService {
    List<MProjectType> findprojecttypelistPage(Page page)throws Exception;

    List<MProjectType> checkName(Map<String, Object> map)throws Exception;

    void saveMProjectType(MProjectType mProjectType)throws Exception;

    void updateMProjectType(MProjectType mProjectType)throws Exception;

    Integer getCountFromMProject(String mProjectId)throws Exception;

    void deleteMProjectType(Long  mProjectId)throws Exception;
    //根据商户编号和状态查询所有商户类型corpId AND status 1是启用0是停用
    List<MProjectType> getTypeList(Map<String, Object> map)throws Exception;

    List<MProjectType> findProjectTypeList();


    List<MProjectType> getProjectTypeNameByCropId(String corpId)throws Exception;
}
